package com.ashen.boot.admin.project.system.datapermission.service;

import com.ashen.boot.admin.project.system.datapermission.model.dto.UserDataPermissionDTO;
import com.ashen.boot.admin.project.system.datapermission.model.entity.UserDataPermissionEntity;
import com.ashen.boot.admin.domain.service.ISuperBaseService;
import com.ashen.boot.admin.project.system.datapermission.model.query.UserDataPermissionParams;

import javax.annotation.Nonnull;
import java.util.Collection;

/**
 * <p>
 * 用户数据权限 服务类
 * </p>
 *
 * @author gao
 * @since 2021-11-08
 */
public interface IUserDataPermissionService extends ISuperBaseService<Long, UserDataPermissionParams, UserDataPermissionDTO, UserDataPermissionEntity> {

    boolean updateUserDataPermission(@Nonnull Long userId, @Nonnull Long dataPermissionId, @Nonnull int isall, Collection<String> permissionIds);

}
